<?php

class Antz_Form_Components_Option extends Antz_Form_Component
{
    public function __construct($title, $value, $selected=false){
        $this->title = $title;
        $this->value = $value;
        $this->selected = $selected;
    }

    public function render(){
        $selected = ($this->selected) ? ' selected="selected" ' : '';
        return '<option value="'.$this->value.'"'.$selected.'>'.$this->title.'</option>';
    }
}
